package com.zdzx.base.common.util;

public enum JwtCode {
	/* 成功状态码 */
	RESULT_SUCCESS("1000",null),
	RESULT_ERROR("1001",null),
	RESULT_LIMITER_ERROR("1002","请求次数过多"),
	RESULT_PARAM_ERROR("1003","请求参数异常"),
	RESULT_USERNAME("1202","用户名错误"),
	RESULT_PASSWORD("1203","密码错误"),
	RESULT_FROM("1204","来源错误"),
	RESULT_PASSWORD_COUNT("1205","密码输入次数过多，5分后再重试"),
	
	TOKEN_SIGNATURE("1101","该账号在其他地点登录"), //签名异常
	TOKEN_MALFORMEDJWT("1102","格式错误"),
	TOKEN_EXPIREDJWT("1103","token过期"),
	TOKEN_UNSUPPORTEDJWT("1104","不支持该JWT"),
	TOKEN_ILLEGALARGUMENT("1105","token参数异常"),
	TOKEN_CHECK("1106","签名解析失败"),
	TOKEN_NULL("1107","token不能为空"),
	TOKEN_ALL("1108","未知异常");
	
	
	private String code;

	private String mes;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMes() {
		return mes;
	}

	public void setMes(String mes) {
		this.mes = mes;
	}

	private JwtCode(String code, String mes) {
		this.code = code;
		this.mes = mes;
	}

	private JwtCode(String code) {
		this.code = code;
	}
	
}
